const houses = {
    namespaced: true,
    state: {
        // 小区名称
        communFullName: '',
        // 楼栋房号
        roomFullName: '',
        // 住户类型
        tempResidentType:''
    },
    getters: {

    },
    mutations: {
        SET_COMMUNITY(state, communFullName) {
            state.communFullName = communFullName
        },
        SET_ROOM(state, roomFullName) {
            state.roomFullName = roomFullName
        },
        SET_RESIDENT_TYPE(state, tempResidentType) {
            state.tempResidentType = tempResidentType
        }
    },
    actions: {
        setCommunity({ commit }, communFullName) {
            commit('SET_COMMUNITY', communFullName)
        },
        setRoom({ commit }, roomFullName) {
            commit('SET_ROOM', roomFullName)
        },
        setResidentType({ commit }, tempResidentType) {
            commit('SET_RESIDENT_TYPE', tempResidentType)
        }
    }
}

export default houses